package libs

import (
	"github.com/go-redsync/redsync/v4"
	"github.com/go-redsync/redsync/v4/redis/goredis/v9"
)

var rs *redsync.Redsync

func redsyncInit() error {
	rs = redsync.New(goredis.NewPool(GetRedis()))
	return nil
}

func GetRedsync() *redsync.Redsync {
	return rs
}
